package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 新建流程模型请求对象
 * @date 2019-10-20 11:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新建流程模型请求对象", description = "新建流程模型请求对象")
public class CreateProcessModelReq extends BaseReqObj {

    private static final long serialVersionUID = -8659406783884057274L;

    @ApiModelProperty(value = "流程模型名称", notes = "流程模型名称", dataType = "String", required = true)
    @NotBlank(message = "流程模型名称不能为空")
    private String name;

    @ApiModelProperty(value = "流程key", notes = "流程key", dataType = "String", required = true)
    @NotBlank(message = "流程key不能为空")
    private String key;

    @ApiModelProperty(value = "流程模型分类", notes = "流程模型分类", dataType = "String")
    private String category;

    @ApiModelProperty(value = "流程模型描述", notes = "流程模型描述", dataType = "String")
    private String desc;
}
